<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Create Post</title>

<link type="text/css" rel="stylesheet" href="../css/demochau.css">
<link type="text/css" rel="stylesheet" href="../css/popup.css">
<link type="text/css" rel="stylesheet" href="../css/jquery-te-1.4.0.css">

<!--<script type="text/javascript" src="http://code.jquery.com/jquery.min.js" charset="utf-8"></script>-->
<script type="text/javascript" src="../js/js-lib/jquery-1.10.2.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../js/js-lib/jquery-te-1.4.0.min.js" charset="utf-8"></script>
</head>

<body>
  <!------------------------------------------------------------ jQUERY TEXT EDITOR ------------------------------------------------------------>
  <s:form action="tao_bai" method="post" cssStyle="width: 100%">
    <s:textfield name="ten"></s:textfield>
    <s:textarea name="noi_dung" cssStyle="height: 400px" cssClass="jqte-test"></s:textarea>
    <s:submit name="Submit name" value="Submit"></s:submit>
  </s:form>
  <script>
			$('.jqte-test').jqte();

			// settings of status
			var jqteStatus = true;
			$(".status").click(function() {
				jqteStatus = jqteStatus ? false : true;
				$('.jqte-test').jqte({
					"status" : jqteStatus
				})
			});
		</script>

  <!------------------------------------------------------------ jQUERY TEXT EDITOR ------------------------------------------------------------>
</body>
</html>